import { createApp } from 'vue'
import App from './App.vue'
import 'ant-design-vue/dist/reset.css';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'virtual:svg-icons-register';
//引入仓库
import pinia from './store/index.ts';
//全局component配置组件,统一导入
import GloableComponent from './components/index.ts'
import SlideVerify from 'vue-monoplasty-slide-verify';
import '../src/utils/permissions.ts'
//导入路由
import router from './utils/router.ts'
import { isHasButton } from './directive/has'
import { VxeTable } from 'vxe-table';
import 'vxe-table/lib/style.css'
const domapp = createApp(App)
isHasButton(domapp)
domapp.use(pinia)
domapp.use(SlideVerify);
console.log(SlideVerify)
domapp.use(ElementPlus) // 此时 ElementPlus 的使用在根组件的挂载之前，是正确的；
domapp.use(VxeTable)
//安装自定义插件
domapp.use(GloableComponent)
domapp.use(router)
domapp.mount('#app')


